package biz.inspeed.test.timer;

import static org.junit.Assert.*;

import java.sql.Time;
import java.util.Timer;
import java.util.TimerTask;

import org.junit.Test;

import biz.inspeed.test.tool.CommonUtil;

public class TimerTest1211 {

	@Test
	public void test() {
		fail("Not yet implemented");
	}
	
	@Test
	public void test_a1(){
	}
	
	public static void main(String[] args) {
		Timer t = new Timer();
		t.schedule(new TimerTask1211(), 0, 5000);
		
	}

}

class TimerTask1211 extends TimerTask {
	TimerTask mTask;
	static int count  = 0;
	public TimerTask1211(){
	}
	@Override
	public void run() {
		System.out.println(CommonUtil.getCurrentTime());
		/// start AnsyTask to update view
		count ++;
		
		if(count == 5){
			cancel();
		}
	}
}
